{any_include file="scp_page_start.tpl" wide=1}

<!-- $Id$ -->

<h1>OAuth - Keys For This Site</h1>

{any_include file="scp_oauth_menu.tpl"}

<h2>Keys You Requested</h2>

<p>You configured the following applications or sites:</p>

<ul>
{foreach from=$consumers item="c"}
<li>
	<h3>
		<a href="{$rel_path}module/OAuth/server/register?consumer_key={$c.consumer_key}">
			{$c.application_title|default:"Untitled"}
		</a>
	</h3>
{if $any_config.debugging.oauth.show_tokens}
	<p>
		Key: <strong>{$c.consumer_key|escape}</strong>
		{if $any_config.debugging.oauth.log_menu}
			<a href="{$rel_path}module/OAuth/log?ocr_consumer_key={$c.consumer_key|escape:"url"}">[log]</a>
		{/if}
		Secret: <strong>{$c.consumer_secret|escape}</strong>
	</p>
{/if}
</li>
{foreachelse}
<li>
	<p class="notice">You don't have any keys registered</p>
</li>
{/foreach}
</ul>

<h2>Request A New Key</h2>

<p>
	<a href="{$rel_path}module/OAuth/server/register" class="button">Request Consumer Key &amp; Secret</a>
</p>


{any_include file="scp_page_end.tpl" wide=1}
